import { Application } from 'egg';

export default (app: Application) => {
    const { STRING, CHAR,TEXT } = app.Sequelize;
    const model = app.model.define('Project', {
        project_id: {
            type: CHAR(32),
            primaryKey: true,
            comment:'项目主键'
        },//主键id
        project_name: {type:STRING(50),comment:'项目名称'},//项目名
        project_picture: {type:STRING(50),comment:'项目主图'},//主图
        project_content: {type:TEXT,comment:'项目简介'},//简介
        is_delete: {type:CHAR(1),comment:'标识是否删除（0：否 1：是）'}//标识是否删除（0：否，1：是）
    }, { tableName: 't_project' });
    return model;
};
export class Project {
    project_id:string;
    project_name: string;
    project_picture: string;
    project_content: string;
    is_delete: string;
}